package com.zhz.model.company;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhz.common.tool.mybatisplus.base.dal.entity.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @author zhouhengzhe
 * @date 2023/3/21
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@TableName(value = "co_department")
public class Department extends BasePO {
    /**
     * 企业ID
     */
    @TableField(COMPANY_ID)
    private String companyId;

    /**
     * 父级部门ID
     */
    @TableField(PID)
    private String pid;

    /**
     * 部门名称
     */
    @TableField(NAME)
    private String name;

    /**
     * 部门编码
     */
    @TableField(CODE)
    private String code;

    /**
     * 部门负责人
     */
    @TableField(MANAGER)
    private String manager;

    /**
     * 介绍
     */
    @TableField(INTRODUCE)
    private String introduce;

    /**
     * 负责人ID
     */
    @TableField(MANAGER_ID)
    private String managerId;

    public static final String COMPANY_ID = "company_id";

    public static final String PID = "pid";

    public static final String NAME = "name";

    public static final String CODE = "code";

    public static final String MANAGER = "manager";

    public static final String INTRODUCE = "introduce";

    public static final String MANAGER_ID = "manager_id";
}